﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ProductMaintenance.aspx.cs" Inherits="ProductMaintenance" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server">
    <table style="width: 98%;" cellpadding="5px">
        <tr>
            <td align="right">
                <asp:Label ID="Label1" runat="server" Text="名称："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtName" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="计量单位："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtUom" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label3" runat="server" Text="单价："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtPrice" ErrorMessage="*请输入数字" 
                    ValidationExpression="^[0-9]+.[0-9]+$|^[0-9]*$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label4" runat="server" Text="供应商："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtSupplier" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label5" runat="server" Text="产地："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtOrigin" runat="server" Width="320px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label6" runat="server" Text="产品描述："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDesc" runat="server" Rows="8" TextMode="MultiLine" 
                    Width="400px" MaxLength="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnAdd" runat="server" Text="添 加" CssClass="NormalButtom" 
                    onclick="btnAdd_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="放 弃" CssClass="NormalButtom" 
                    onclick="btnCancel_Click" />
            </td>
        </tr>
    </table>
    <div style="text-align:center;">

    </div>
    </asp:Content>

